setPopup

open fun setPopup(widget: PopupWidget?, mouseX: Double? = null, mouseY: Double? = null)

Applies a popup widget to this parent. If null is passed, removes the top (newest) popup instead

Author

fzzyhmstrs

Since

0.2.0

Parameters

widget

PopupWidget, nullable. If not null, will be added to the top of this parent's popup stack, otherwise the top element will be popped

mouseX

Double, nullable. If not null, will be used to reset mouse hover context when the last popup is removed.

mouseY

Double, nullable. If not null, will be used to reset mouse hover context when the last popup is removed.